<%@ page language="java" contentType="text/html; charset=UTF-8"
    import="com.yky.entity.*"
    pageEncoding="UTF-8"%>
<script src="/js/common.js"></script>
<div id="heardbanner"><img src="/images/banner.jpg" alt="医学研究登记备案信息系统" width="1003" height="128" /></div>

 <div style="margin-top: 15px; float: right; margin-right: 30px; color: #EE9A00; font-weight: bold;">
 	你好，<a href="/admin/user/user_edit.jsp" style="color: #EE9A00; text-decoration: underline;">${user.name }（${user.username }）</a>！ 
      <span style="cursor: pointer; color: #EE5C42" onclick="javascript:location.href='/admin/login!exitSystem.action'">退出系统</span>
      &nbsp; 
      <span style="cursor: pointer; color: #ef4136" onclick="javascript:location.href='/index/complain.jsp'">投诉</span>
 </div>

 <div id="MainNav" style="clear: both;">
   <ul class="nav">
     <li><a class="<%if(request.getRequestURL().indexOf("/index/main.jsp")!=-1) out.print("hov"); %>" href="/index/main.jsp">首页</a></li>
     <%
      User aUser = (User)request.getSession().getAttribute("user");
      int organizationRecordsStatus = (Integer)request.getSession().getAttribute("organizationRecordsStatus");
     %>
      <%
      	if(aUser.getRoleType()==0) {
     %>
      <li><a class="<%if(request.getRequestURL().indexOf("/index/project_search.jsp")!=-1) out.print("hov"); %>" href="/index/project_search.jsp">项目列表</a></li>
      <li><a class="<%if(request.getRequestURL().indexOf("/admin/user/user_list.jsp")!=-1) out.print("hov"); %>" href="/admin/user/user_list.jsp">用户查询</a></li>
	  <li><a class="<%if(request.getRequestURL().indexOf("/admin/user/user_audit.jsp")!=-1) out.print("hov"); %>" href="/admin/user/user_audit.jsp">用户管理</a></li>
   	  <li><a class="<%if(request.getRequestURL().indexOf("/index/organization_records_search.jsp")!=-1) out.print("hov"); %>" href="/index/organization_records_search.jsp">备案机构列表</a></li>
    <%
      	}else if(aUser.getRoleType()==1) {
     %>
      <li><a class="<%if(request.getRequestURL().indexOf("/index/project_search.jsp")!=-1) out.print("hov"); %>" href="/index/project_search.jsp">项目列表</a></li>
      <li><a class="<%if(request.getRequestURL().indexOf("/admin/project/project_audit.jsp")!=-1) out.print("hov"); %>" href="/admin/project/project_audit.jsp">项目管理</a></li>
      <li><a class="<%if(request.getRequestURL().indexOf("/admin/user/user_list.jsp")!=-1) out.print("hov"); %>" href="/admin/user/user_list.jsp">用户查询</a></li>
      <li><a class="<%if(request.getRequestURL().indexOf("/admin/user/user_audit.jsp")!=-1) out.print("hov"); %>" href="/admin/user/user_audit.jsp">用户管理</a></li>
      <li><a class="<%if(request.getRequestURL().indexOf("/admin/organization_records/organization_records_audit.jsp")!=-1) out.print("hov"); %>" href="/admin/organization_records/organization_records_audit.jsp">备案机构审查</a></li>
     <%
      	}else if(aUser.getRoleType()==2) {
     %>
     	<%if(organizationRecordsStatus == 1){%>
		    <li><a class="<%if(request.getRequestURL().indexOf("/index/project_search.jsp")!=-1) out.print("hov"); %>" href="/index/project_search.jsp">项目列表</a></li>
	     	<li><a class="<%if(request.getRequestURL().indexOf("/admin/project/project_audit.jsp")!=-1) out.print("hov"); %>" href="/admin/project/project_audit.jsp">项目管理</a></li>
	     	<li><a class="<%if(request.getRequestURL().indexOf("/admin/project/project_version_audit.jsp")!=-1) out.print("hov"); %>" href="/admin/project/project_version_audit.jsp">项目变更审查</a></li>
	     	<li><a class="<%if(request.getRequestURL().indexOf("/admin/user/user_list.jsp")!=-1) out.print("hov"); %>" href="/admin/user/user_list.jsp">用户管理</a></li>
	     	<li><a class="<%if(request.getRequestURL().indexOf("/admin/organization/organization_update.jsp")!=-1) out.print("hov"); %>" href="/admin/organization/organization_update.jsp">机构信息维护</a></li>
	    	<li><a class="<%if(request.getRequestURL().indexOf("/admin/organization_records/organization_records_input.jsp")!=-1) out.print("hov"); %>" href="/admin/organization_records/organization_records_input.jsp">机构备案信息</a></li>
		<% }else{%>
    		<li><a class="<%if(request.getRequestURL().indexOf("/admin/organization_records/organization_records_input.jsp")!=-1) out.print("hov"); %>" href="/admin/organization_records/organization_records_input.jsp">新机构备案</a></li>
    	<% }%>
     <%
      }else if(aUser.getRoleType()==3) {
     %>
     	<%if(organizationRecordsStatus == 1){%>
		      <li><a class="<%if(request.getRequestURL().indexOf("/index/project_search.jsp")!=-1) out.print("hov"); %>" href="/index/project_search.jsp">项目列表</a></li>
		      <li><a class="<%if(request.getRequestURL().indexOf("/admin/project/project_input.jsp")!=-1) out.print("hov"); %>" href="/admin/project/project_input.jsp">新项目登记</a></li>
		      <li><a class="<%if(request.getRequestURL().indexOf("/admin/project/project_list.jsp")!=-1) out.print("hov"); %>" href="/admin/project/project_list.jsp">我的项目管理</a></li>
     	<%}%>
     <%
      }
     %>
     
     <li><a href="/pdf/zhinan.pdf" target="_blank">使用指南</a></li>
      
   </ul>
</div>